﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyWCFServices.RealRestaurantService
{
    public class AsztalClass
    {
        private int id;
        private List<Arak> arak;
        private int asztalSzam;
        private int statusz;
        private int fo;
        private int maxFo;
        private DateTime time;
        private int x;
        private int y;

        public AsztalClass(List<Arak> ar, int id, int maxFo, int statusz, int fo, int x, int y)
        {
            this.arak = ar;
            this.id = id;
            this.statusz = statusz;
            this.fo = fo;
            this.x = x;
            this.y = y;
            this.maxFo = maxFo;
        }

        public AsztalClass(AsztalClass a)
        {
            this.arak = new List<Arak>(a.arak);
            this.id = a.id;
            this.maxFo = a.maxFo;
            this.statusz = a.statusz;
            this.fo = a.fo;
            this.x = a.x;
            this.y = a.y;
            
        }

        public AsztalClass()
        {
            this.arak = new List<Arak>();
            this.asztalSzam = 0;
            this.statusz = 0;
        }

        public void setArak(List<Arak> arak) { this.arak = arak; }

        public void addArak(Arak ar) { this.arak.Add(ar); }

        public List<Arak> getArak() { return this.arak; }

        public void setAsztalSzam(int asztalSzam) { this.asztalSzam = asztalSzam; }

        public void setStatusz(int statusz) { this.statusz = statusz; }

        public void setFo(int fo) { this.fo = fo; }

        public void setMaxFo(int maxFo) { this.maxFo = maxFo; }

        public void setTime(DateTime time) { this.time = time; }

        public void setX(int x) { this.x = x; }

        public void setY(int y) { this.y = y; }

        public int getId() { return this.id; }
        
        public int getAsztalSzam() { return this.asztalSzam; }

        public int getStatusz() { return this.statusz; }

        public int getFo() { return this.fo; }

        public int getMaxFo() { return this.maxFo; }

        public DateTime getTime() { return this.time; }

        public int getX() { return this.x; }

        public int getY() { return this.y; }
    }
}
